

import { createApp } from 'vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import App from './App.vue'

import { createMemoryHistory, createRouter } from 'vue-router'


import ChartsView from './views/charts.vue'
import CompareView from './views/compare.vue'
import InfluenceView from './views/influence.vue'
import PredView from './views/predict.vue'
import AnalyseView from './views/priceAnalyse.vue'
import MapView from './views/map.vue'
import HomeView from './views/home.vue'
const routes = [
  { path: '/charts/:city', component: ChartsView },
  { path: '/compare', component: CompareView },
  { path: '/influence/:city/:influence', component: InfluenceView },
  { path: '/pred/:city', component: PredView },
  { path: '/ana', component: AnalyseView },
  { path: '/map/:city', component: MapView },
  { path: '/', component: HomeView }
]

const router = createRouter({
  history: createMemoryHistory(),
  routes,
})

app = createApp(App).use(ElementPlus).use(router).mount("#app")
